/**
 * 2013-6-3 上午6:12:17 Created By niexiaoqiang
 */

package com.xiaoqiang.MtwV2ForMoblie.listener;

import android.widget.TabHost.OnTabChangeListener;

import com.xiaoqiang.MtwV2ForMoblie.MainActivity;
import com.xiaoqiang.util.Logger;

/**
 * tab切换监听器
 */
public class MyTabChangeListener implements OnTabChangeListener {
	
	private static Logger log = new Logger(MyTabChangeListener.class);
	MainActivity mainActivity;

	public MyTabChangeListener(Object obj) {
		mainActivity = (MainActivity) obj;
	}

	@Override
	public void onTabChanged(String tabname) {
		log.debug("change to tab:"+tabname);
		mainActivity.upataIconSelected(tabname);
	}

}
